
    #!/bin/bash

    # Note do not try to symlink to this script
    # Add check to avoid this if we pass it on the command line
    
    app_dir=$(cd "$(dirname "$0")"; pwd)
    prog_name=$(basename "$app_dir" | tr A-Z a-z)
    
    # Add needed libraries to LD_LIBRARY_PATH under Linux
    LD_LIBRARY_PATH=${app_dir}/supportlibs:${LD_LIBRARY_PATH}

    export LD_LIBRARY_PATH

    exec "${app_dir}/${prog_name}" "$@"
    